import { Profile } from '@/types/user'
const key = 'rabbit-ts-profile-ma'
//存储个人信息
export const setProfile = (profile: Profile) => {
  localStorage.setItem(key, JSON.stringify(profile))
}
//获取个人信息
export const getProfile = () => {
  return JSON.parse(localStorage.getItem(key) || '{}')
}
//移出个人信息
export const removeProfile = () => {
  localStorage.removeItem(key)
}